<template>
  <div>
    sweetalert2 一个自适应，且自定义性强的弹出框（零依赖）
  </div>
</template>
<script>
import Swal from 'sweetalert2'
export default {
  data: () => ({}),
  created() {
    Swal.fire({
      title: 'Sweet!',
      text: 'Modal with a custom image.',
      imageUrl: 'https://unsplash.it/400/200',
      imageWidth: 400,
      imageHeight: 200,
      imageAlt: 'Custom image',
    })
  }
}
</script>
<style lang="scss" scoped>
</style>